package com.dimension.pojo;

import java.util.ArrayList;
import java.util.List;

public class PersonalExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public PersonalExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andPersonalidIsNull() {
            addCriterion("personalId is null");
            return (Criteria) this;
        }

        public Criteria andPersonalidIsNotNull() {
            addCriterion("personalId is not null");
            return (Criteria) this;
        }

        public Criteria andPersonalidEqualTo(Integer value) {
            addCriterion("personalId =", value, "personalid");
            return (Criteria) this;
        }

        public Criteria andPersonalidNotEqualTo(Integer value) {
            addCriterion("personalId <>", value, "personalid");
            return (Criteria) this;
        }

        public Criteria andPersonalidGreaterThan(Integer value) {
            addCriterion("personalId >", value, "personalid");
            return (Criteria) this;
        }

        public Criteria andPersonalidGreaterThanOrEqualTo(Integer value) {
            addCriterion("personalId >=", value, "personalid");
            return (Criteria) this;
        }

        public Criteria andPersonalidLessThan(Integer value) {
            addCriterion("personalId <", value, "personalid");
            return (Criteria) this;
        }

        public Criteria andPersonalidLessThanOrEqualTo(Integer value) {
            addCriterion("personalId <=", value, "personalid");
            return (Criteria) this;
        }

        public Criteria andPersonalidIn(List<Integer> values) {
            addCriterion("personalId in", values, "personalid");
            return (Criteria) this;
        }

        public Criteria andPersonalidNotIn(List<Integer> values) {
            addCriterion("personalId not in", values, "personalid");
            return (Criteria) this;
        }

        public Criteria andPersonalidBetween(Integer value1, Integer value2) {
            addCriterion("personalId between", value1, value2, "personalid");
            return (Criteria) this;
        }

        public Criteria andPersonalidNotBetween(Integer value1, Integer value2) {
            addCriterion("personalId not between", value1, value2, "personalid");
            return (Criteria) this;
        }

        public Criteria andUseridIsNull() {
            addCriterion("userId is null");
            return (Criteria) this;
        }

        public Criteria andUseridIsNotNull() {
            addCriterion("userId is not null");
            return (Criteria) this;
        }

        public Criteria andUseridEqualTo(Integer value) {
            addCriterion("userId =", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridNotEqualTo(Integer value) {
            addCriterion("userId <>", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridGreaterThan(Integer value) {
            addCriterion("userId >", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridGreaterThanOrEqualTo(Integer value) {
            addCriterion("userId >=", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridLessThan(Integer value) {
            addCriterion("userId <", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridLessThanOrEqualTo(Integer value) {
            addCriterion("userId <=", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridIn(List<Integer> values) {
            addCriterion("userId in", values, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridNotIn(List<Integer> values) {
            addCriterion("userId not in", values, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridBetween(Integer value1, Integer value2) {
            addCriterion("userId between", value1, value2, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridNotBetween(Integer value1, Integer value2) {
            addCriterion("userId not between", value1, value2, "userid");
            return (Criteria) this;
        }

        public Criteria andUserimgIsNull() {
            addCriterion("userImg is null");
            return (Criteria) this;
        }

        public Criteria andUserimgIsNotNull() {
            addCriterion("userImg is not null");
            return (Criteria) this;
        }

        public Criteria andUserimgEqualTo(String value) {
            addCriterion("userImg =", value, "userimg");
            return (Criteria) this;
        }

        public Criteria andUserimgNotEqualTo(String value) {
            addCriterion("userImg <>", value, "userimg");
            return (Criteria) this;
        }

        public Criteria andUserimgGreaterThan(String value) {
            addCriterion("userImg >", value, "userimg");
            return (Criteria) this;
        }

        public Criteria andUserimgGreaterThanOrEqualTo(String value) {
            addCriterion("userImg >=", value, "userimg");
            return (Criteria) this;
        }

        public Criteria andUserimgLessThan(String value) {
            addCriterion("userImg <", value, "userimg");
            return (Criteria) this;
        }

        public Criteria andUserimgLessThanOrEqualTo(String value) {
            addCriterion("userImg <=", value, "userimg");
            return (Criteria) this;
        }

        public Criteria andUserimgLike(String value) {
            addCriterion("userImg like", value, "userimg");
            return (Criteria) this;
        }

        public Criteria andUserimgNotLike(String value) {
            addCriterion("userImg not like", value, "userimg");
            return (Criteria) this;
        }

        public Criteria andUserimgIn(List<String> values) {
            addCriterion("userImg in", values, "userimg");
            return (Criteria) this;
        }

        public Criteria andUserimgNotIn(List<String> values) {
            addCriterion("userImg not in", values, "userimg");
            return (Criteria) this;
        }

        public Criteria andUserimgBetween(String value1, String value2) {
            addCriterion("userImg between", value1, value2, "userimg");
            return (Criteria) this;
        }

        public Criteria andUserimgNotBetween(String value1, String value2) {
            addCriterion("userImg not between", value1, value2, "userimg");
            return (Criteria) this;
        }

        public Criteria andUsernamesIsNull() {
            addCriterion("userNames is null");
            return (Criteria) this;
        }

        public Criteria andUsernamesIsNotNull() {
            addCriterion("userNames is not null");
            return (Criteria) this;
        }

        public Criteria andUsernamesEqualTo(String value) {
            addCriterion("userNames =", value, "usernames");
            return (Criteria) this;
        }

        public Criteria andUsernamesNotEqualTo(String value) {
            addCriterion("userNames <>", value, "usernames");
            return (Criteria) this;
        }

        public Criteria andUsernamesGreaterThan(String value) {
            addCriterion("userNames >", value, "usernames");
            return (Criteria) this;
        }

        public Criteria andUsernamesGreaterThanOrEqualTo(String value) {
            addCriterion("userNames >=", value, "usernames");
            return (Criteria) this;
        }

        public Criteria andUsernamesLessThan(String value) {
            addCriterion("userNames <", value, "usernames");
            return (Criteria) this;
        }

        public Criteria andUsernamesLessThanOrEqualTo(String value) {
            addCriterion("userNames <=", value, "usernames");
            return (Criteria) this;
        }

        public Criteria andUsernamesLike(String value) {
            addCriterion("userNames like", value, "usernames");
            return (Criteria) this;
        }

        public Criteria andUsernamesNotLike(String value) {
            addCriterion("userNames not like", value, "usernames");
            return (Criteria) this;
        }

        public Criteria andUsernamesIn(List<String> values) {
            addCriterion("userNames in", values, "usernames");
            return (Criteria) this;
        }

        public Criteria andUsernamesNotIn(List<String> values) {
            addCriterion("userNames not in", values, "usernames");
            return (Criteria) this;
        }

        public Criteria andUsernamesBetween(String value1, String value2) {
            addCriterion("userNames between", value1, value2, "usernames");
            return (Criteria) this;
        }

        public Criteria andUsernamesNotBetween(String value1, String value2) {
            addCriterion("userNames not between", value1, value2, "usernames");
            return (Criteria) this;
        }

        public Criteria andUsersexIsNull() {
            addCriterion("userSex is null");
            return (Criteria) this;
        }

        public Criteria andUsersexIsNotNull() {
            addCriterion("userSex is not null");
            return (Criteria) this;
        }

        public Criteria andUsersexEqualTo(String value) {
            addCriterion("userSex =", value, "usersex");
            return (Criteria) this;
        }

        public Criteria andUsersexNotEqualTo(String value) {
            addCriterion("userSex <>", value, "usersex");
            return (Criteria) this;
        }

        public Criteria andUsersexGreaterThan(String value) {
            addCriterion("userSex >", value, "usersex");
            return (Criteria) this;
        }

        public Criteria andUsersexGreaterThanOrEqualTo(String value) {
            addCriterion("userSex >=", value, "usersex");
            return (Criteria) this;
        }

        public Criteria andUsersexLessThan(String value) {
            addCriterion("userSex <", value, "usersex");
            return (Criteria) this;
        }

        public Criteria andUsersexLessThanOrEqualTo(String value) {
            addCriterion("userSex <=", value, "usersex");
            return (Criteria) this;
        }

        public Criteria andUsersexLike(String value) {
            addCriterion("userSex like", value, "usersex");
            return (Criteria) this;
        }

        public Criteria andUsersexNotLike(String value) {
            addCriterion("userSex not like", value, "usersex");
            return (Criteria) this;
        }

        public Criteria andUsersexIn(List<String> values) {
            addCriterion("userSex in", values, "usersex");
            return (Criteria) this;
        }

        public Criteria andUsersexNotIn(List<String> values) {
            addCriterion("userSex not in", values, "usersex");
            return (Criteria) this;
        }

        public Criteria andUsersexBetween(String value1, String value2) {
            addCriterion("userSex between", value1, value2, "usersex");
            return (Criteria) this;
        }

        public Criteria andUsersexNotBetween(String value1, String value2) {
            addCriterion("userSex not between", value1, value2, "usersex");
            return (Criteria) this;
        }

        public Criteria andUseridcardIsNull() {
            addCriterion("userIDcard is null");
            return (Criteria) this;
        }

        public Criteria andUseridcardIsNotNull() {
            addCriterion("userIDcard is not null");
            return (Criteria) this;
        }

        public Criteria andUseridcardEqualTo(String value) {
            addCriterion("userIDcard =", value, "useridcard");
            return (Criteria) this;
        }

        public Criteria andUseridcardNotEqualTo(String value) {
            addCriterion("userIDcard <>", value, "useridcard");
            return (Criteria) this;
        }

        public Criteria andUseridcardGreaterThan(String value) {
            addCriterion("userIDcard >", value, "useridcard");
            return (Criteria) this;
        }

        public Criteria andUseridcardGreaterThanOrEqualTo(String value) {
            addCriterion("userIDcard >=", value, "useridcard");
            return (Criteria) this;
        }

        public Criteria andUseridcardLessThan(String value) {
            addCriterion("userIDcard <", value, "useridcard");
            return (Criteria) this;
        }

        public Criteria andUseridcardLessThanOrEqualTo(String value) {
            addCriterion("userIDcard <=", value, "useridcard");
            return (Criteria) this;
        }

        public Criteria andUseridcardLike(String value) {
            addCriterion("userIDcard like", value, "useridcard");
            return (Criteria) this;
        }

        public Criteria andUseridcardNotLike(String value) {
            addCriterion("userIDcard not like", value, "useridcard");
            return (Criteria) this;
        }

        public Criteria andUseridcardIn(List<String> values) {
            addCriterion("userIDcard in", values, "useridcard");
            return (Criteria) this;
        }

        public Criteria andUseridcardNotIn(List<String> values) {
            addCriterion("userIDcard not in", values, "useridcard");
            return (Criteria) this;
        }

        public Criteria andUseridcardBetween(String value1, String value2) {
            addCriterion("userIDcard between", value1, value2, "useridcard");
            return (Criteria) this;
        }

        public Criteria andUseridcardNotBetween(String value1, String value2) {
            addCriterion("userIDcard not between", value1, value2, "useridcard");
            return (Criteria) this;
        }

        public Criteria andUseralipayIsNull() {
            addCriterion("userAlipay is null");
            return (Criteria) this;
        }

        public Criteria andUseralipayIsNotNull() {
            addCriterion("userAlipay is not null");
            return (Criteria) this;
        }

        public Criteria andUseralipayEqualTo(String value) {
            addCriterion("userAlipay =", value, "useralipay");
            return (Criteria) this;
        }

        public Criteria andUseralipayNotEqualTo(String value) {
            addCriterion("userAlipay <>", value, "useralipay");
            return (Criteria) this;
        }

        public Criteria andUseralipayGreaterThan(String value) {
            addCriterion("userAlipay >", value, "useralipay");
            return (Criteria) this;
        }

        public Criteria andUseralipayGreaterThanOrEqualTo(String value) {
            addCriterion("userAlipay >=", value, "useralipay");
            return (Criteria) this;
        }

        public Criteria andUseralipayLessThan(String value) {
            addCriterion("userAlipay <", value, "useralipay");
            return (Criteria) this;
        }

        public Criteria andUseralipayLessThanOrEqualTo(String value) {
            addCriterion("userAlipay <=", value, "useralipay");
            return (Criteria) this;
        }

        public Criteria andUseralipayLike(String value) {
            addCriterion("userAlipay like", value, "useralipay");
            return (Criteria) this;
        }

        public Criteria andUseralipayNotLike(String value) {
            addCriterion("userAlipay not like", value, "useralipay");
            return (Criteria) this;
        }

        public Criteria andUseralipayIn(List<String> values) {
            addCriterion("userAlipay in", values, "useralipay");
            return (Criteria) this;
        }

        public Criteria andUseralipayNotIn(List<String> values) {
            addCriterion("userAlipay not in", values, "useralipay");
            return (Criteria) this;
        }

        public Criteria andUseralipayBetween(String value1, String value2) {
            addCriterion("userAlipay between", value1, value2, "useralipay");
            return (Criteria) this;
        }

        public Criteria andUseralipayNotBetween(String value1, String value2) {
            addCriterion("userAlipay not between", value1, value2, "useralipay");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}